package Extend;

public class Demo02 {
    public static void main(String[] args) {
        Teacher t1 = new Teacher();
        t1.setName("林青霞");
        t1.setAge(18);
        System.out.println(t1.getName()+","+t1.getAge());
        t1.teach();

        Teacher t2 = new Teacher("左冷禅",20);
        System.out.println(t2.getName()+","+t2.getAge());
        t2.teach();

        Student s1 = new Student("ww",20);
        System.out.println(s1.getName()+","+s1.getAge());
        s1.study();
    }
}
